blow up in (someone's) face

Translations
обернуться против (кого-то)
His plan to cheat on the test blew up in his face when he got caught.
Его план списать на тесте обернулся против него, когда его поймали.
Definitions
To have a plan, action, or situation go wrong unexpectedly, often causing problems or negative consequences for the person who initiated it.